package com.handu.luna.core.domain.promotion;


import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.handu.luna.core.domain.BaseRepository;


public interface SalesPromotionRepository extends JpaRepository<SalesPromotion,Long>,BaseRepository<SalesPromotion>,JpaSpecificationExecutor<SalesPromotion> {
	
	@Query("select b from SalesPromotion b  order by id desc  ")
	Page<SalesPromotion> findAll(Pageable pageable);
}
